<?php /* @var $this Block_Admin_User_Grid */?>
<div id="content">
    <div class="box">
        <div class="box-head">
            <h2 class="left">Current Articles</h2>
            <?php if($this->isMasaction()):?>
                <div class="right">
                    <label>search articles</label>
                    <?php $masaction = $this->getMasaction()?>
                    <select class="field small-field">
                    <?php foreach ($masaction->getOption() as $_option):?>
                        <option value="<?php echo $_option['url']?>"><?php echo $_option['title']?></option>
                    <?php endforeach;?>
                    </select>
                    <input type="submit" class="button" value="submit" />
                </div>
            <?php endif;?>
        </div>
        <div class="table">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <?php if($this->isMasaction()):?>
                        <th width="13"><input type="checkbox" class="checkbox massaction-main-item" name="<?php echo $masaction->getVar()?>"/></th>
                    <?php endif;?>
                    <?php $columns = $this->getColumns()?>
                    <?php foreach ($columns as $_column):?>
                        <th><?php echo $_column->getTitle()?></th>
                    <?php endforeach;?>
                    <?php if($this->isAction()):?>
                        <?php $action = $this->getAction()?>
                        <th title="<?php echo $action->getTitle()?>"><?php echo $action->getLabel()?></th>
                    <?php endif;?>
                </tr>
                <?php foreach ($this->getCollection()->getItems() as $_item):?>
                    <tr>
                        <?php if($this->isMasaction()):?>
                            <td><input type="checkbox" class="checkbox massaction-items" name="massaction-items-<?php echo $_item->getData($masaction->getIndex())?>"/></td>
                        <?php endif;?>
                        <?php foreach ($columns as $_column):?>
                            <td><?php echo $_item->getData($_column->getIndex())?></td>
                        <?php endforeach;?>
                        <?php if($this->isAction()):?>
                            <td>
                            <?php $action = $this->getAction()?>
                            <?php foreach ($action->getOptions() as $op):?>
                                <a href="<?php echo $this->getActionUrl($op, $_item)?>" class="<?php echo $op['class']?>"><?php echo $op['label']?></a>
                            <?php endforeach;?>
                            </td>
                        <?php endif;?>
                    </tr>
                <?php endforeach;?>
            </table>
            <div class="pagging">
                <div class="left">Showing 1-12 of 44</div>
                <div class="right">
                    <a href="#">Previous</a>
                    <a href="#">1</a>
                    <a href="#">2</a>
                    <a href="#">3</a>
                    <a href="#">4</a>
                    <a href="#">245</a>
                    <span>...</span>
                    <a href="#">Next</a>
                    <a href="#">View all</a>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
<!--
    var grid = new Grid({masaction:<?php echo $this->isMasaction()?>});
//-->
</script>
<?php $this->getSidebarHtml()?>